package cn.cvs.dao;

import cn.cvs.pojo.Storage;
import cn.cvs.pojo.Supplier;
import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysSupplierMapper {
     int count();
     List<Supplier>list();

     List<SysUser> getUsersByRealName(String name);

    /**
     * 3-上机-3
     * @param supName
     * @param supCode
     * @param supContact
     * @param createdTime
     * @return
     */
    List<Supplier>storageChoose(@Param("supName")String supName, @Param("supCode")String supCode, @Param("supContact")String supContact, @Param("createdTime")String createdTime);

    /**
     * 3-上机-6
     * @param supName
     * @param supDesc
     * @param supPhone
     * @return
     */
    int update(@Param("supName")String supName,@Param("supDesc")String supDesc,@Param("supPhone")String supPhone);

    /**
     * 3-上机-7
     * @param supName
     * @param supDesc
     * @param supPhone
     * @return
     */
    int updateTrim(@Param("supName")String supName,@Param("supDesc")String supDesc,@Param("supPhone")String supPhone);
}
